wayland: Disallow setting the cursor on the touch master pointer
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 19 Nov 2015 19:06:07 +0000 (20:06 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 19 Nov 2015 22:26:48 +0000 (23:26 +0100)
That "pointer" is not backed by anything in the windowing system, ignore
cursor updates there.

gdk/wayland/gdkdevice-wayland.c

index eefd38cbc99e5fc06aad1dcd68d2ffc861b92add..58f5b9ef772f18b73c9f2a1b69e9bbb4124a4c47 100644 (file)
@@ -283,6 +283,9 @@ gdk_wayland_device_set_window_cursor (GdkDevice *device,
 {
   GdkWaylandDeviceData *wd = GDK_WAYLAND_DEVICE (device)->device;
 
+  if (device == wd->touch_master)
+    return;
+
   /* Setting the cursor to NULL means that we should use
    * the default cursor
    */